

import './static/css/font.css'
import './static/css/style.css'
// import './static/js/one.js'
// import './static/js/two.js'
import Print from './static/js/print';

import $ from 'zepto';

 async function getComponent() {
   var element = document.createElement('div');
   const _ = await import(/* webpackChunkName: "lodash" */ 'lodash');

   element.innerHTML = _.join(['Hello', 'webpack'], ' ');

   element.onClick = Print.bind(null, 'Hello webpack!');
   
   return element;
  }

console.log('cccccccccccc');
var o1 = {a:1};
var o2 = {b:2};
var copy = Object.assign({},o1,o2,{bar:{value:2}});

 // function getComponent() {
 //   return import(/* webpackChunkName: "lodash" */ 'lodash').then(_ => {
 //     var element = document.createElement('div');

 //     element.innerHTML = _.join(['Hello', 'webpack'], ' ');

 //     return element;

 //   }).catch(error => 'An error occurred while loading the component');
 //  }


document.onclick=function(){
	getComponent().then(component => {
		document.body.appendChild(component);
	});
}

$('body').addClass('zdaaaa')